package com.btt.pattern.singleton.lazy;

/**
 * @description 代码块同步实现线程安全懒汉式
 *
 * @author btt
 * @create 2018/6/27
 * @since 1.0.0
 */
public class LazyThree {

    private LazyThree(){}

    private static LazyThree LAZY_THREE = null;

    public static final LazyThree getInstance(){
        if(LAZY_THREE == null){
            synchronized(LazyThree.class){
                if(LAZY_THREE == null){
                    LAZY_THREE = new LazyThree();
                }
            }
        }
        return LAZY_THREE;
    }

}
